package org.csmzxy.class2333.duotai;

public class Example14 {
    public static void main(String[] args) {

        Animal animal = new Dog();
        animal.speak();
        Dog dog = (Dog)  animal;
        dog.houseKeep();

        Animal animal1 = new Cat();
        Dog dog2 = (Dog)animal1;
        dog2.houseKeep();

    }
}
